package org.mspring.platform.task;

import java.util.Map;

/**
 * @author Gao Youbo
 * @since Feb 20, 2012
 */
public abstract interface Task {

    /**
     * 同步执行
     *
     * @param paramMap
     * @throws Exception
     */
    public abstract void doSyncTask(Map<Object, Object> paramMap) throws Exception;

    /**
     * 异步执行
     *
     * @param paramMap
     * @throws Exception
     */
    public abstract void doAsyncTask(Map<Object, Object> paramMap) throws Exception;
}
